package com.md.api.service;

import com.github.binarywang.wxpay.exception.WxPayException;
import com.md.api.entity.HttpResult;
import com.md.api.entity.MotOrder;
import com.md.api.entity.MotReservation;
import com.md.api.entity.ShoppingCart;
import com.md.api.entity.dto.ComposeCommitDto;
import com.md.api.entity.dto.ComposeQueryDto;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author liujie
 * @ClassName UserSevice
 * @Date 2022/11/9 11:34
 **/
public interface MotService {

    String notify(HttpServletRequest request);

    HttpResult motTrade(HttpServletRequest request, ComposeCommitDto qto);

    HttpResult order(HttpServletRequest request, ComposeCommitDto qto) throws WxPayException;

    HttpResult myMotOrder(HttpServletRequest request, ComposeQueryDto qto);

    HttpResult reservation(HttpServletRequest request, ComposeCommitDto qto);

    HttpResult myReservation(HttpServletRequest request, ComposeQueryDto qto);

    HttpResult orderDetail(HttpServletRequest request, MotOrder order);

    HttpResult reservationDetail(HttpServletRequest request, MotReservation reservation);

    HttpResult cancelReservation(HttpServletRequest request, MotReservation reservation);

    HttpResult cancelMotOrder(HttpServletRequest request, MotOrder order);

    String backMotNotify(HttpServletRequest request);

    HttpResult predetermineDetail(ComposeQueryDto queryDto);

    HttpResult dayHasRoom();
}
